<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scrollbarFadeDuration="0"
    android:scrollbars="vertical"
    tools:context=".DownloadActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp"
        android:layout_marginBottom="16dp"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/tooLowMemory"
            style="@style/install_activity__segment"
            android:background="@color/install_activity__warning_orange"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__too_low_memory_title" />

            <TextView
                android:id="@+id/tooLowMemoryDescription"
                style="@style/install_activity__default_text" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/externalStorageNotAccessible"
            style="@style/install_activity__segment"
            android:background="@color/install_activity__red_background_for_text"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__external_storage_not_accessible" />

            <TextView
                android:id="@+id/externalStorageNotAccessible_state"
                style="@style/install_activity__monospace_text"
                android:text="" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/fetchUrl"
            style="@style/install_activity__segment">

            <TextView
                android:id="@+id/fetchUrlTextView"
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__fetch_url_for_download" />

            <ProgressBar
                style="?android:attr/progressBarStyle"
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:layout_gravity="center" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/fetchedUrlSuccess"
            style="@style/install_activity__segment">

            <TextView
                android:id="@+id/fetchedUrlSuccessTextView"
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__fetched_url_for_download_successfully" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/downloadingFile"
            style="@style/install_activity__segment">

            <TextView
                android:id="@+id/downloadingFileText"
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__download_app_with_status" />

            <TextView
                android:id="@+id/downloadingFileUrl"
                style="@style/install_activity__monospace_text" />

            <ProgressBar
                android:id="@+id/downloadingFileProgressBar"
                style="?android:attr/progressBarStyleHorizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/downloadedFile"
            style="@style/install_activity__segment">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__downloaded_application_from" />

            <TextView
                android:id="@+id/downloadedFileUrl"
                style="@style/install_activity__monospace_text" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/useCachedDownloadedApk"
            style="@style/install_activity__segment">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__use_cached_downloaded_apk" />

            <TextView
                android:id="@+id/useCachedDownloadedApk__path"
                style="@style/install_activity__monospace_text" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/downloadFileFailed"
            style="@style/install_activity__segment"
            android:background="@color/install_activity__red_background_for_text"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/download_activity__download_failed" />

            <TextView
                android:id="@+id/downloadFileFailedUrl"
                style="@style/install_activity__monospace_text" />

            <TextView
                android:id="@+id/downloadFileFailedText"
                style="@style/install_activity__default_text"
                android:layout_marginTop="8dp"
                android:layout_marginBottom="8dp"
                android:text="@string/download_activity__temporary_network_issue" />

            <TextView
                android:id="@+id/downloadFileFailedShowException"
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__exception__show_button" />

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__you_can_now_close_this_window" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/installingApplication"
            style="@style/install_activity__segment">

            <ProgressBar
                style="?android:attr/progressBarStyle"
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:layout_gravity="center" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/fingerprintInstalledGood"
            style="@style/install_activity__segment"
            android:background="@color/install_activity__success_green"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/installed_application_is_verified" />

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__sha_256_certificate_fingerprint" />

            <TextView
                android:id="@+id/fingerprintInstalledGoodHash"
                style="@style/install_activity__monospace_text" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/installerSuccess"
            style="@style/install_activity__segment"
            android:background="@color/install_activity__success_green"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__bold_text"
                android:text="@string/application_successfully_installed" />

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__you_can_now_close_this_window" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/install_activity__exception"
            style="@style/install_activity__segment"
            android:background="@color/install_activity__red_background_for_text"
            android:padding="8dp">

            <TextView
                android:id="@+id/install_activity__exception__text"
                style="@style/install_activity__bold_text" />

            <TextView
                android:id="@+id/install_activity__exception__description"
                style="@style/install_activity__default_text"
                android:paddingBottom="8dp"
                android:visibility="gone" />

            <TextView
                android:id="@+id/install_activity__exception__show_button"
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__exception__show_button" />

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__you_can_now_close_this_window" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/install_activity__different_installer_info"
            style="@style/install_activity__segment"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__different_installer_info__text" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/install_activity__delete_cache"
            style="@style/install_activity__segment"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__delete_cache_explanation" />

            <Button
                android:id="@+id/install_activity__delete_cache_button"
                style="@style/install_activity__button"
                android:text="@string/download_activity__delete_cache_button_text" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/install_activity__open_cache_folder"
            style="@style/install_activity__segment"
            android:padding="8dp">

            <TextView
                style="@style/install_activity__default_text"
                android:text="@string/download_activity__open_cache_explanation" />

            <TextView
                android:id="@+id/install_activity__cache_folder_path"
                style="@style/install_activity__monospace_text" />

            <Button
                android:id="@+id/install_activity__open_cache_folder_button"
                style="@style/install_activity__button"
                android:text="@string/download_activity__open_cache_folder_button_text" />

        </LinearLayout>

    </LinearLayout>

</androidx.core.widget.NestedScrollView>